package org.window;

import javafx.geometry.Pos;
import javafx.scene.layout.*;

/**
 * 水平盒子
 */
public class PaneAndHBoxFrameDataInfo {
    public static HBox hBox = new HBox();
    public static void init(){
        hBox.setLayoutX(10);
        hBox.setLayoutY(55);
        hBox.setPrefWidth(490);
        hBox.setPrefHeight(20);
        hBox.setAlignment(Pos.CENTER_LEFT);
        hBox.setSpacing(10);
//        new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)
//        hBox.setBackground(new Background(new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)));
        hBox.getChildren().addAll(
                PaneAndHBoxFrameDataInfoAndText.text,
                PaneAndHBoxFrameDataInfoAndCheckBox.checkBox,
                PaneAndHBoxFrameDataInfoAndCheckBoxSuspendGame.checkBox
        );
        PaneAndHBoxFrameDataInfoAndText.init();
        PaneAndHBoxFrameDataInfoAndCheckBox.init();
        PaneAndHBoxFrameDataInfoAndCheckBoxSuspendGame.init();
    }
}
